class UsersController < ApplicationController
  def new
  	@user = User.new
  end

  def create
  	@user = User.new(user_params)
  	if @user.save
  		redirect_to new_sessions_path
  	end
  end

  def show
    @users = User.all
  end

    private
  	def user_params
    params.require(:user).permit(:name, :email, :password, :salt)
  end

end
